export const delay = (ms: number) => {
  return {
    then: (resolve: (value: unknown) => unknown) => {
      setTimeout(() => {
        resolve(ms)
      }, ms)
    }
  }
}
